package com.xxljob.demo.core.route;


import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.biz.model.TriggerParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * @Author：YH
 * @Description：路由策略抽象类
 * @Date:Created in 2022/5/21 15:44
 */
public abstract class ExecutorRouter {

    private static final Logger LOGGER = LoggerFactory.getLogger(ExecutorRouter.class);

    /**
     * @param triggerParam:
     * @param addressList:执行器地址列表，多地址逗号分隔
     * @Description:
     * @return: com.xxl.job.core.biz.model.ReturnT<java.lang.String>
     **/
    public abstract ReturnT<String> route(TriggerParam triggerParam, List<String> addressList);

}
